<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
    <meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
    <title>添加用户</title>
    <link rel="stylesheet" type="text/css" href="{{ static('css/reset.css') }}">
    <link rel="stylesheet" type="text/css" href="{{ static('css/main.css') }}">

    <style>
        body {
            background: #46967D;
        }
    </style>
    <script type="text/javascript" src="{{ static('js/vue-2.5.16.js') }}"></script>
    <script type="text/javascript" src="{{ static('js/axios-0.18.0.min.js') }}"></script>
</head>
<body>
<div id="app">
    <div class="register_con">
        <div class="l_con fl">
            <a href="index.html" class="reg_logo"><img src="../static/images/logoz.png "></a>
            <div class="reg_slogan">求真 · 创新 · 勤学 · 笃行</div>
            <div class="reg_banner"></div>
        </div>
        <div class="r_con fr">
            <div class="reg_title clearfix">
                <h1>添加用户</h1>
                <a href="{{ url('users:login') }}">登录</a>
            </div>
            <div class="reg_form clearfix">
                <form method="post" class="register_form" @submit="on_submit" v-cloak>
                    {{ csrf_input }}
                    <ul>
                        <li>
                            <label>学号:</label>
                            <input type="text" v-model="mobile" @blur="check_mobile" name="mobile" id="phone">
                            <span class="error_tip" v-show="error_mobile">[[ error_mobile_message ]]</span>
                        </li>
                        <li>
                            <label>用户名:</label>
                            <input type="text" v-model="username" @blur="check_username" name="username" id="user_name">
                            <span class="error_tip" v-show="error_name">[[ error_name_message ]]</span>
                        </li>
                        <li>
                            <label>密码:</label>
                            <input type="password" v-model="password" @blur="check_password" name="password" id="pwd">
                            <span class="error_tip" v-show="error_password">请输入一组6位数字的密码</span>
                        </li>
                        <li>
                            <label>确认密码:</label>
                            <input type="password" v-model="password2" @blur="check_password2" name="password2"
                                   id="cpwd">
                            <span class="error_tip" v-show="error_password2">两次输入的密码不一致</span>
                        </li>
                        <li>
                            <label>年级</label>
                            <select id="cpwd" type="grade" v-model="grade" name="grade">
                                <option value="2017">2017级</option>
                                <option value="2018">2018级</option>
                                <option value="2019">2019级</option>
                                <option value="2020">2020级</option>
                                <option value="2021">2021级</option>
                            </select>
                        <li>
                            <label>院：</label>
                            <select id="cmbCollege" type="college" v-model="user_college" name="user_college"></select>
                        </li>
                        <li>
                            <label>系：</label>
                            <select id="cmbDepartment" type="professional" v-model="professional"
                                    name="professional"></select>
                        </li>

{#                        <li class="agreement">#}
{#                            <input type="checkbox" v-model="allow" @change="check_allow" name="allow" id="allow">#}
{#                            <label>同意"图书馆管理条例"</label>#}
{#                            <span class="error_tip" v-show="error_allow">请勾选用户协议</span>#}
{#                            {% if register_errmsg %}#}
{#                                <span class="error_tip">{{ register_errmsg }}</span>#}
{#                            {% endif %}#}
{#                        </li>#}
                        <li class="reg_sub">
                            <input type="submit" id="btn1" value="注 册">
                        </li>
                    </ul>
                </form>
            </div>
        </div>
    </div>
    <div class="footer no-mp">
        <div class="foot_link">
            <a href="#">求真</a>
            <span>|</span>
            <a href="#">创新</a>
            <span>|</span>
            <a href="#">勤学</a>
            <span>|</span>
            <a href="#">笃行</a>
        </div>
        <p>CopyRight © 2021 信阳学院图书馆 All Rights Reserved</p>
    </div>
</div>
<script src="{{ static('js/register.js') }}"></script>
<script>departmentInit('cmbCollege', 'cmbDepartment', '软件学院', '软件工程');</script>
</body>
</html>
{#"^([\u4E00-\uFA29]|[\uE7C7-\uE7F3]|[a-zA-Z0-9])*$"#}